import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';
//列表数据
export const columns: BasicColumn[] = [
  {
    title: '学校编号',
    align: "center",
    dataIndex: 'cid'
  },
  {
    title: '学校名称',
    align: "center",
    dataIndex: 'name'
  },
  {
    title: '学校层次',
    align: "center",
    dataIndex: 'level'
  },
  {
    title: '所在省份',
    align: "center",
    dataIndex: 'location'
  },
  {
    title: '城市',
    align: "center",
    dataIndex: 'city'
  },
  {
    title: '图标',
    align: "center",
    dataIndex: 'img'
  },
  {
    title: '状态',
    align: "center",
    dataIndex: 'status_dictText'
  },
];

//查询数据
export const searchFormSchema: FormSchema[] = [
];

//表单数据
export const formSchema: FormSchema[] = [
  {
    label: 'ID',
    field: 'id',
    component: 'InputNumber',
  },
  {
    label: '学校编号',
    field: 'cid',
    component: 'Input',
  },
  {
    label: '学校名称',
    field: 'name',
    component: 'Input',
  },
  {
    label: '学校层次',
    field: 'level',
    component: 'Input',
  },
  {
    label: '所在省份',
    field: 'location',
    component: 'Input',
  },
  {
    label: '城市',
    field: 'city',
    component: 'Input',
  },
  {
    label: '图标',
    field: 'img',
    component: 'Input',
  },
  {
    label: '状态',
    field: 'status',
    component: 'JDictSelectTag',
    componentProps:{
      dictCode: "status"
    },
  },
];
